package com.neusoft.ruangong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.ruangong.domain.Conference;
import com.neusoft.ruangong.domain.Reservation;
import com.neusoft.ruangong.domain.Reservations;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.sql.Time;
import java.util.Date;
import java.util.List;

@Mapper
public interface ReservationMapper extends BaseMapper<Reservation> {
     Integer modifyReservation(@Param("id") Long id);
     List<Conference> queryConference(long id);
     List<Reservations> UntreatedReservation(@Param("startIndex") Long startIndex,@Param("pageSize") Long pageSize);
     List<Reservations> queryLinkReservation(String str);

     Integer addConference(BigInteger userId, Long reservationid);

     Reservation queryReservation(String user, Date date, Time begintime);

     Integer addReservation(Reservation reservation);

     long queryReservationId(long code);

     Integer queryUntreatedSize();

     List<Reservations> queryReservationByName(@Param("userName")String userName, @Param("pageIndex") Long pageIndex, @Param("limit") Long limit);

     Integer queryReservationCount(String userName);

     List<Reservations> searchUserReservation(@Param("roomName")String roomName,@Param("userId") Long userId);

     List<Reservation> queryTimeReservation(@Param("roomId")Long roomId,@Param("formatData") String formatData);

     List<Conference> queryTimeConference(@Param("userId")Long userId,@Param("data") String data);

     Integer modifyReservation1(Long id);

     List<Reservations> pageReservation(@Param("pageIndex")Long pageIndex,@Param("limit") Long limit);

     Integer queryPageSize();
}
